package com.prueba.client.interfaz.antigua;




import com.prueba.client.datosYlogica.GestorCliente;
import com.smartgwt.client.types.ContentsType;
import com.smartgwt.client.widgets.HTMLPane;
import com.smartgwt.client.widgets.Window;


public class VisorWiki extends Window{
	
    private static VisorWiki INSTANCE = null;
	private HTMLPane htmlPane;
	
	private VisorWiki(){
		super();
		this.setTitle("Editor Wiki");
		
		this.setHeight(600);
		this.setWidth(600);
		
		this.setCanDragResize(true);
		htmlPane = new HTMLPane();  
	    htmlPane.setContentsURL("http://localhost:8080/xwiki/bin/"+GestorCliente.getEspacio()+"/"+GestorCliente.getPagina());  
	    htmlPane.setContentsType(ContentsType.PAGE);  
	    this.addItem(htmlPane);
	}
	
	 private static void createInstance() {
	        if (INSTANCE == null) { 
	            INSTANCE = new VisorWiki();}
	        }
	
	 public static VisorWiki getInstance() {
	    if (INSTANCE == null) createInstance();
	    return INSTANCE;
	        }	   
}
